Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build arm64 binaries #26

Merged
merged 4 commits into from
Apr 27, 2022
Merged

fix: build arm64 binaries #26

merged 4 commits into from
Apr 27, 2022

Conversation

julian-dolce-form3
Copy link
Contributor

@julian-dolce-form3 julian-dolce-form3 commented Apr 25, 2022

Build arm64 binaries. This is required for Apple Silicon.

Initial build was failing with the following errors.

Step 1/2 error: unsupported state format version: expected ["0.1" "0.2"], got "1.0"

The resolution for this was described here, which required an upgrade of github.com/hashicorp/terraform-plugin-sdk/v2. Updating to the latest version of that also bumped the Go Version to 1.17.

Testing done:

  • Unit tests all pass
  • bundle tested locally with terraform init on Apple Silicon
  • We can't test this on a real plan without jumping through a lot of hoops so we tested it locally in a test module
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # module.auth0_mod[0].auth0_user.test_user will be created
  + resource "auth0_user" "test_user" {
      + connection_type = "Username-Password-Authentication"
      + email           = "[email protected]"
      + email_verified  = true
      + id              = (known after apply)
      + name            = "test-user-api.api.test.com"
      + password        = (sensitive value)
      + user_id         = (known after apply)
      + user_metadata   = (known after apply)
    }

  # module.auth0_mod[0].random_uuid.test_user_password will be created
  + resource "random_uuid" "test_user_password" {
      + id     = (known after apply)
      + result = (known after apply)
    }

Plan: 2 to add, 0 to change, 0 to destroy.

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.

image

@julian-dolce-form3 julian-dolce-form3 requested a review from a team as a code owner April 25, 2022 11:42
Copy link

@janakerman-form3 janakerman-form3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for the detailed testing description.

@julian-dolce-form3 julian-dolce-form3 merged commit 0cf4361 into master Apr 27, 2022
@julian-dolce-form3 julian-dolce-form3 deleted the jd-arm64 branch April 27, 2022 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants